""" 查询数据源列表 """
from tool_class.tools import generate_random_string_b, generate_random_string, generate_custom_string
""" 测试开始时新增一个数据源 """
origin_add_01 = {
    "button_click.新增数据源": {
        "text": " 新增数据源 ",
    },
    "input.数据源名称": {
        "testId": "dataSource-lform-10001",
        "value": generate_random_string(10)
    },
    "checkbox.标签类型":{
        "childId_list":["dataSource-lform-10004-op-0"],
    },
    "radio_select.处理模型":{
        "testId": "dataSource-lform-10005",
        "radio_vaules": ["GLM大模型"]
    }
}
""" 验证新增数据源 """
origin_add_02 = {
    "button_click.新增数据源": {
        "text": " 新增数据源 ",
    },
    "input.数据源名称": {
        "testId": "dataSource-lform-10001",
        "value": generate_random_string(10)
    },
    "checkbox.标签类型":{
        "childId_list":["dataSource-lform-10004-op-0"],
    },
    "radio_select.处理模型":{
        "testId": "dataSource-lform-10005",
        "radio_vaules": ["GLM大模型"]
    }
}
""" 验证新增数据源名称和数据名称不可为空 """
origin_add_03 = {
    "button_click.新增数据源": {
        "text": " 新增数据源 ",
    },
    "checkbox.标签类型":{
        "childId_list":["dataSource-lform-10004-op-0"],
    },
    "radio_select.处理模型":{
        "testId": "dataSource-lform-10005",
        "radio_vaules": ["GLM大模型"]
    }
}

query_condition_00 = {
    "input.不匹配规则名称": {
        "testId":"founding-dataSource-10001",
        "value" : "不匹配规则名称"
        },
    "button_click.查询": {
        "testId": "founding-dataSource-10004",
    },
    "get_list_data.数据源列表": {
        "testId":"founding-index-20003",
        }
}
query_condition_01 = {
    "input.规则名称": {
        "testId":"founding-dataSource-10001",
        "value" : "test"
        },
    "button_click.查询": {
        "testId": "founding-dataSource-10004",
    },
    "get_list_data.数据源列表": {
        "testId":"founding-index-20003",
        }
}
query_condition_02 = {
    "pull_checked.接入类型": {
        "testId":"founding-dataSource-10002",
        "liId": 'founding-dataSource-10002-op-0'
        },
    "button_click.查询": {
        "testId": "founding-dataSource-10004",
    },
    "get_list_data.数据源列表": {
        "testId":"dataSource-table-10003-t1",
        }
}
query_condition_03 = {
    "pull_checked.接入类型": {
        "testId":"founding-dataSource-10002",
        "liId": 'founding-dataSource-10002-op-1'
        },
    "button_click.查询": {
        "testId": "founding-dataSource-10004",
    },
    "get_list_data.数据源列表": {
        "testId":"dataSource-table-10003-t1",
        }
}
query_condition_04 = {
    "pull_checked.接入类型": {
        "testId":"founding-dataSource-10002",
        "liId": 'founding-dataSource-10002-op-2'
        },
    "button_click.查询": {
        "testId": "founding-dataSource-10004",
    },
    "get_list_data.数据源列表": {
        "testId":"dataSource-table-10003-t1",
        }
}

""" 查询数据源数据详情列表 """
query_data_detail_01 = {
    "input.不匹配关键字": {
        "testId":"dataSource-original-10003",
        "value" : "外饰造型风格"
        },
    "button_click.查询": {
        "testId": "dataSource-original-10005",
    },
    "get_list_data.数据集列表": {
        "testId":"founding-corpus-20001-item",
        }
}
query_data_detail_02 = {
    "input.匹配关键字": {
        "testId":"dataSource-original-10003",
        "value" : "优惠条件"
        },
    "button_click.查询": {
        "testId": "dataSource-original-10005",
    },
    "get_list_data.数据集列表": {
        "testId":"dataSource-original-t4",
        }
}
query_data_detail_03 = {
    "pull_cascade.数据渠道": {
        "testId":"dataSource-original-channel-20001",
        "title_lsit" : ["小红书>checked"]
        },
    "element_click.关闭下拉": {
        "testId":"dataSource-original-channel-20001",
        "el_y": 10
    },
    "button_click.查询": {
        "testId": "dataSource-original-10005",
    },
    "get_list_data.数据集列表": {
        "testId":"dataSource-original-t2",
        }
}
query_data_detail_04 = {
    "pull_checkbox.数据状态": {
        "testId":"dataSource-original-10002",
        "li_lsit" : ["dataSource-original-10002-op-0"]
        },
    "element_click.关闭下拉": {
        "testId": "dataSource-original-10002",
        "el_y": 10
    },
    "button_click.查询": {
        "testId": "dataSource-original-10005",
    },
    "get_list_data.数据集列表": {
        "testId":"dataSource-original-t13",
        }
}
query_data_detail_05 = {
    "time_input.时间范围": {
        "testId":"dataSource-original-10001",
        "start_time" : "2019-08-07",
        "end_time" : "2021-08-07"
        },
    "button_click.查询": {
        "testId": "dataSource-original-10005",
    },
    "get_list_data.数据集列表": {
        "testId":"founding-corpus-20001-item",
        }
}
query_data_detail_06 = {
    "time_input.结果数据_时间范围": {
        "testId":"dataSource-result-10001",
        "start_time" : "2019-08-07",
        "end_time" : "2021-08-07"
        },
    "button_click.查询": {
        "testId": "dataSource-result-10011",
    },
    "get_list_data.数据集列表": {
        "testId":"founding-corpus-20001-item",
        }
}
query_data_detail_07 = {
    "pull_cascade.结果数据_数据渠道": {
        "testId":"dataSource-result-channel-20001",
        "title_lsit" : ["小红书>checked"]
        },
    "button_click.查询": {
        "testId": "dataSource-result-10011",
    },
    "get_list_data.数据集列表": {
        "testId":"dataSource-result-t10",
        }
}
query_data_detail_08 = {
    "pull_checkbox.结果数据_数据状态": {
        "testId":"dataSource-result-10006",
        "li_lsit" : ["dataSource-result-10006-op-0"]
        },
    "button_click.查询": {
        "testId": "dataSource-result-10011",
    },
    "get_list_data.数据集列表": {
        "testId":"dataSource-result-t13",
        }
}
query_data_detail_09 = {
    "pull_checkbox.结果数据_情感": {
        "testId":"dataSource-result-10007",
        "li_lsit" : ["dataSource-result-10007-op-0"]
        },
    "button_click.查询": {
        "testId": "dataSource-result-10011",
    },
    "get_list_data.数据集列表": {
        "testId":"dataSource-result-t8",
        }
}
query_data_detail_10 = {
    "pull_checkbox.结果数据_意图": {
        "testId":"dataSource-result-10008",
        "li_lsit" : ["dataSource-result-10008-op-0"]
        },
    "element_click.关闭下拉": {
        "testId": "dataSource-result-10008",
        "el_y": 10
    },
    "button_click.查询": {
        "testId": "dataSource-result-10011",
    },
    "get_list_data.数据集列表": {
        "testId":"dataSource-result-t9",
        }
}
query_data_detail_11 = {
    "input.结果数据_不匹配关键字": {
        "testId":"dataSource-result-10009",
        "value" : "外饰造型风格"
        },
    "button_click.查询": {
        "testId": "dataSource-result-10011",
    },
    "get_list_data.数据集列表": {
        "testId":"dataSource-result-t3",
        }
}
query_data_detail_12 = {
    "input.结果数据_匹配关键字": {
        "testId":"dataSource-result-10009",
        "value" : "超强性能版"
        },
    "button_click.查询": {
        "testId": "dataSource-result-10011",
    },
    "get_list_data.数据集列表": {
        "testId":"dataSource-result-t3",
        }
}

""" 编辑数据源 """
data_origin_add = {
    "button_click.新增数据源": {
        "text": " 新增数据源 ",
    },
    "input.数据源名称": {
        "testId": "dataSource-lform-10001",
        "value": generate_random_string(10)
    },
    "checkbox.标签类型":{
        "childId_list":["dataSource-lform-10004-op-0"],
    },
    "radio_select.处理模型":{
        "testId": "dataSource-lform-10005",
        "radio_vaules": ["GLM大模型"]
    }
}
data_origin_edit = {
    "action_bar.选中新增数据源": {
        "testId": "founding-index-20003",
        "text": data_origin_add['input.数据源名称']['value'],
    },
    "close_pull.编辑数据源": {
        "testId": "founding-index-20003",
        "name":data_origin_add['input.数据源名称']['value'],
        "deviation_value": 40
    },
    "input.数据源名称": {
        "testId":"dataSource-lform-10001",
        "value" : generate_random_string(10)
        },
}
data_origin_delete = {
    "action_bar.选中编辑数据源": {
        "testId": "founding-index-20003",
        "text": data_origin_edit['input.数据源名称']['value']
    },
    "close_pull.删除编辑数据源": {
        "testId": "founding-index-20003",
        "name": data_origin_edit['input.数据源名称']['value'],
        "deviation_value": 10
    },
}

""" 查询语料库列表 """
text_query_01 = {
    "input.不匹配数据集名称": {
        "testId":"founding-corpus-10002",
        "value" : "外饰造型风格"
        },
    "button_click.查询": {
        "testId": "founding-corpus-10004",
    },
    "get_list_data.数据集列表": {
        "testId":"founding-corpus-20001-item",
        }
}
text_query_02 = {
    "input.匹配数据集名称": {
        "testId":"founding-corpus-10002",
        "value" : "文本"
        },
    "button_click.查询": {
        "testId": "founding-corpus-10004",
    },
    "get_list_data.数据集列表": {
        "testId":"founding-corpus-20001-item",
        }
}
text_query_03 = {
    "pull_checkbox.文本": {
        "testId":"founding-corpus-10001",
        "li_lsit" : ["founding-corpus-10001-op-0"]
        },
    "button_click.查询": {
        "testId": "founding-corpus-10004",
    },
    "get_list_data.数据集列表": {
        "testId":"founding-corpus-20001-item",
        }
}
text_query_04 = {
    "pull_checkbox.工单": {
        "testId":"founding-corpus-10001",
        "li_lsit" : ["founding-corpus-10001-op-1"]
        },
    "button_click.查询": {
        "testId": "founding-corpus-10004",
    },
    "get_list_data.数据集列表": {
        "testId":"founding-corpus-20001-item",
        }
}
text_query_05 = {
    "pull_checkbox.对话": {
        "testId":"founding-corpus-10001",
        "li_lsit" : ["founding-corpus-10001-op-2"]
        },
    "button_click.查询": {
        "testId": "founding-corpus-10004",
    },
    "get_list_data.数据集列表": {
        "testId":"founding-corpus-20001-item",
        }
}



""" 查询车系库列表 """
car_query_01 = {
    "input.匹配车系名称": {
        "testId":"founding-carseries-10004",
        "value" : "奥迪"
        },
    "button_click.查询": {
        "testId": "founding-carseries-10006",
    },
    "get_list_data.数据集列表": {
        "testId":"founding-table-10001-t0",
        }
}
car_query_02 = {
    "input.不匹配车系名称": {
        "testId":"founding-carseries-10004",
        "value" : "不匹配车系名称"
        },
    "button_click.查询": {
        "testId": "founding-carseries-10006",
    },
    "get_list_data.数据集列表": {
        "testId":"founding-table-10001-t0",
        }
}
car_query_03 = {
    "pull_checkbox.起亚": {
        "testId": "founding-carseries-10001",
        "li_lsit": ["founding-carseries-10001-op-0"]
    },
    "button_click.查询": {
        "testId": "founding-carseries-10006",
    },
    "get_list_data.数据集列表": {
        "testId":"founding-carseries-20001-",
        }
}
car_query_04 = {
    "pull_cascade.中型MPV": {
        "testId": "founding-carseries-10002",
        "title_lsit": ["MPV>hover","中型MPV>checked"]
    },
    "button_click.查询": {
        "testId": "founding-carseries-10006",
    },
    "get_list_data.数据集列表": {
        "testId":"founding-table-10001-t1-",
        }
}
car_query_05 = {
    "pull_cascade.纯电动": {
        "testId": "founding-carseries-10003",
        "title_lsit": ["新能源>hover","纯电动>checked"]
    },
    "button_click.查询": {
        "testId": "founding-carseries-10006",
    },
    "get_list_data.数据集列表": {
        "testId":"founding-table-10001-t2-",
        }
}

""" 车系多级查询 """
cars_query_01 = {
    "pull_cascade.条件级联": {
        "testId": "founding-carseries-10002",
        "title_lsit": ["SUV>hover","小型SUV>checked","中型SUV>checked","大型SUV>checked",
                       "紧凑型SUV>checked","中大型SUV>checked","微卡>checked"]
    },
    "button_click.查询": {
        "testId": "founding-carseries-10006",
    },
    "get_list_data.数据集列表": {
        "testId":"founding-table-10001-t1-",
        }
}
cars_query_02 = {
    "pull_checkbox.条件多级": {
        "testId": "founding-carseries-10001",
        "li_lsit": ["founding-carseries-10001-op-0", "founding-carseries-10001-op-1","founding-carseries-10001-op-2",
                    "founding-carseries-10001-op-3","founding-carseries-10001-op-4", "founding-carseries-10001-op-5"]
    },
    "button_click.查询": {
        "testId": "founding-carseries-10006",
    },
    "get_list_data.数据集列表": {
        "testId":"founding-carseries-20001-",
        }
}

""" 验证车型库字段必填项 """
car_add_01 = {
    "button_click.请输入品牌名称": {
        "testId":"founding-carseries-10007",
        },
    "button_click.确定": {
        "text": "确定",
    }
}
car_add_02 = {
    "button_click.请输入品牌名称": {
        "testId":"founding-table-10001",
        },
    "input.输入车系名称": {
        "testId":"founding-carseries-series-40002",
        "value": "ID3",
        },
    "pull_checked.车辆级别": {
        "testId":"founding-carseries-series-40007",
        "liId": "founding-carseries-series-40007-2"
    },
    "pull_checked.车辆级别2": {
         "testId": "founding-carseries-series-40008",
        "liId": "founding-carseries-series-40008-2"
    },
    "pull_checked.能源类型": {
        "testId": "founding-carseries-series-40009",
        "liId": "founding-carseries-series-40009-1"
    },
    "pull_checked.能源类型2": {
        "testId": "founding-carseries-series-40012",
        "liId": "founding-carseries-series-40012-1"
    },
    "button_click.确定": {
        "text": "确定",
        }
}
car_add_03 = {
    "button_click.请输入车系名称": {
        "testId":"founding-table-10001",
        },
    "pull_checked.归属品牌": {
        "testId":"founding-carseries-series-40001",
        "liId": "founding-carseries-series-40001-1",
        },
    "pull_checked.车辆级别": {
        "testId":"founding-carseries-series-40007",
        "liId": "founding-carseries-series-40007-2"
    },
    "pull_checked.车辆级别2": {
         "testId": "founding-carseries-series-40008",
        "liId": "founding-carseries-series-40008-2"
    },
    "pull_checked.能源类型": {
        "testId": "founding-carseries-series-40009",
        "liId": "founding-carseries-series-40009-1"
    },
    "pull_checked.能源类型2": {
        "testId": "founding-carseries-series-40012",
        "liId": "founding-carseries-series-40012-1"
    },
    "button_click.确定": {
        "text": "确定",
        }
}
car_add_04 = {
    "button_click.请选择车辆级别": {
        "testId":"founding-table-10001",
        },
    "input.输入车系名称": {
        "testId": "founding-carseries-series-40002",
        "value": "ID3",
    },
    "pull_checked.归属品牌": {
        "testId":"founding-carseries-series-40001",
        "liId": "founding-carseries-series-40001-1",
        },
    "pull_checked.车辆级别": {
        "testId":"founding-carseries-series-40007",
        "liId": "founding-carseries-series-40007-2"
    },
    # "pull_checked.车辆级别2": {
    #      "testId": "founding-carseries-series-40008",
    #     "liId": "founding-carseries-series-40008-2"
    # },
    "pull_checked.能源类型": {
        "testId": "founding-carseries-series-40009",
        "liId": "founding-carseries-series-40009-1"
    },
    "pull_checked.能源类型2": {
        "testId": "founding-carseries-series-40012",
        "liId": "founding-carseries-series-40012-1"
    },
    "button_click.确定": {
        "text": "确定",
        }
}
car_add_05 = {
    "button_click.请选择能源类型": {
        "testId":"founding-table-10001",
        },
    "input.输入车系名称": {
        "testId": "founding-carseries-series-40002",
        "value": "ID3",
    },
    "pull_checked.归属品牌": {
        "testId":"founding-carseries-series-40001",
        "liId": "founding-carseries-series-40001-1",
        },
    "pull_checked.车辆级别": {
        "testId":"founding-carseries-series-40007",
        "liId": "founding-carseries-series-40007-2"
    },
    "pull_checked.车辆级别2": {
         "testId": "founding-carseries-series-40008",
        "liId": "founding-carseries-series-40008-2"
    },
    "pull_checked.能源类型": {
        "testId": "founding-carseries-series-40009",
        "liId": "founding-carseries-series-40009-1"
    },
    # "pull_checked.能源类型2": {
    #     "testId": "founding-carseries-series-40012",
    #     "liId": "founding-carseries-series-40012-1"
    # },
    "button_click.确定": {
        "text": "确定",
        }
}

""" 验证新增车系和品牌 """
car_add_001 = {
    "button_click.新增品牌": {
        "testId":"founding-carseries-10007",
        },
    "input.名称": {
        "testId":"founding-carseries-brand-30001",
        "value": generate_random_string(10),
        },
    "input.英文名称": {
        "testId": "founding-carseries-brand-30002",
        "value": generate_random_string(10),
    },
    "input.品牌别名": {
        "testId": "founding-carseries-brand-30003",
        "value": generate_random_string(10),
    },
    "input.排除词": {
        "testId": "founding-carseries-brand-30004",
        "value": "排除词排除词排除词排除词排除词排除词排除词",
    },
    "upload_file.展示图片": {
        "file_path":"",
    },
    "button_click.确定": {
        "text": "确定",
    },
    "get_list_data.数据集列表": {
        "testId": "founding-carseries-20001",
    },
}

car_add_002 = {
    "button_click.新增车系": {
        "testId":"founding-table-10001",
        },
    "input.名称": {
        "testId":"founding-carseries-series-40002",
        "value": generate_random_string(10),
        },
    "pull_checked.归属品牌": {
        "testId":"founding-carseries-series-40001",
        "liId": "founding-carseries-series-40001-0",
        },
    "pull_checked.车辆级别": {
        "testId":"founding-carseries-series-40007",
        "liId": "founding-carseries-series-40007-2"
    },
    "pull_checked.车辆级别2": {
         "testId": "founding-carseries-series-40008",
        "liId": "founding-carseries-series-40008-2"
    },
    "pull_checked.能源类型": {
        "testId": "founding-carseries-series-40009",
        "liId": "founding-carseries-series-40009-1"
    },
    "pull_checked.能源类型2": {
        "testId": "founding-carseries-series-40012",
        "liId": "founding-carseries-series-40012-1"
    },
    "upload_file.展示图片": {
        "file_path":"",
    },
    "button_click.确定": {
        "text": "确定",
    },
    "close_pull.选中自动化测试品牌": {
        "testId": "founding-carseries-20001",
        "name": car_add_001["input.名称"]["value"],
        "deviation_value": 200,
    },
    "get_list_data.数据集列表": {
        "testId": "founding-table-10001-t0",
    },
}
car_edit_001 = {
    "action_bar.编辑车系": {
        "testId":"founding-table-10001-b1",
        "text":car_add_002["input.名称"]["value"],
        },
    "input.名称": {
        "testId":"founding-carseries-series-40002",
        "value": generate_random_string(10),
        },
    "button_click.确定删除": {
        "text": "确定",
    },
    "get_list_data.数据集列表": {
        "testId": "founding-table-10001-t0",
    },
}

edit_car_name = generate_random_string(10)
car_edit_002 = {
    "close_pull.编辑品牌": {
        "testId": "founding-carseries-20001",
        "name": car_add_001["input.名称"]["value"],
        "deviation_value": 40,
        },
    "input.名称": {
        "testId":"founding-carseries-brand-30001",
        "value": edit_car_name,
        },
    "button_click.确定": {
        "text": "确定",
    },
    "get_list_data.数据集列表": {
        "testId": "founding-carseries-20001",
    },
    "close_pull.选中自动化测试品牌": {
        "testId": "founding-carseries-20001",
        "name": edit_car_name,
        "deviation_value": 200,
    },
    "action_bar.删除数据": {
        "testId": "founding-table-10001-b2",
        "text": car_edit_001["input.名称"]["value"],
    },
    "button_click.确定删除": {
        "text": "确定",
    },
    "close_pull.删除数据": {
        "testId": "founding-carseries-20001",
        "name": edit_car_name,
        "deviation_value": 10,
    },
    "button_click.确定删除品牌": {
        "text": "确定",
    }
}

""" 查询资源库列表 """
resource_query_01 = {
    "input.不匹配数据详情": {
        "testId":"founding-index-10001",
        "value" : "不匹配数据详情"
        },
    "button_click.查询": {
        "testId": "founding-index-10004",
    },
    "get_list_data.数据集列表": {
        "testId":"founding-index-detail-30002-t1",
        }
}
resource_query_02 = {
    "input.匹配数据详情": {
        "testId":"founding-index-10001",
        "value" : "test"
        },
    "button_click.查询": {
        "testId": "founding-index-10004",
    },
    "get_list_data.数据集列表": {
        "testId":"founding-index-detail-30002-t1",
        }
}
resource_query_03 = {
    "pull_checkbox.已启用": {
        "testId":"founding-index-10002",
        "li_lsit" : ["founding-index-10002-op-0"]
        },
    "button_click.查询": {
        "testId": "founding-index-10004",
    },
    "get_list_data.数据集列表": {
        "testId":"founding-index-detail-30002-t2",
        }
}
resource_query_04 = {
    "pull_checkbox.未启用": {
        "testId":"founding-index-10002",
        "li_lsit" : ["founding-index-10002-op-1"]
        },
    "button_click.查询": {
        "testId": "founding-index-10004",
    },
    "get_list_data.数据集列表": {
        "testId":"founding-index-detail-30002-t2",
        }
}
resource_query_05 = {
    "pull_checkbox.已禁用": {
        "testId":"founding-index-10002",
        "li_lsit" : ["founding-index-10002-op-2"]
        },
    "button_click.查询": {
        "testId": "founding-index-10004",
    },
    "get_list_data.数据集列表": {
        "testId":"founding-index-detail-30002-t2",
        }
}

""" 验证资源组新增编辑 """
resource_add_001 = {
    "button_click.新增资源组": {
        "testId":"founding-index-20001",
        },
    "input.名称": {
        "testId":"founding-index-group-form-10002",
        "value": generate_random_string(10),
        },
    "button_click.确定": {
        "text": "确定",
    },
    "get_list_data.数据集列表": {
        "testId": "founding-index-20004",
    },
}

resource_edit_001 = {
    "action_bar.编辑资源组": {
        "testId":"founding-index-20006",
        "text": resource_add_001["input.名称"]["value"],
        },
    "input.名称": {
        "testId":"founding-index-group-form-10002",
        "value": generate_random_string(10),
        },
    "button_click.确定": {
        "text": "确定",
    },
    "get_list_data.数据集列表": {
        "testId": "founding-index-20004",
    },
}

resource_add_002 = {
    "close_pull.选中资源组": {
        "testId": "founding-index-20003-0",
        "name": resource_edit_001["input.名称"]["value"],
        "deviation_value": 200,
    },
    "button_click.新增数据": {
        "testId":"founding-index-detail-30001",
        },
    "input.名称": {
        "testId":"founding-index-detail-form-40003",
        "value": generate_random_string(10),
        },
    "button_click.确定": {
        "text": "确定",
    },
    "get_list_data.数据集列表": {
        "testId": "founding-index-detail-30002-t1",
    },
}
data_name = generate_random_string(10)
resource_edit_002 = {
    "close_pull.选中资源组": {
        "testId": "founding-index-20003-0",
        "name": resource_edit_001["input.名称"]["value"],
        "deviation_value": 200,
    },
    "action_bar.编辑数据": {
        "testId":"founding-index-detail-30003-b1",
        "text": resource_add_002["input.名称"]["value"],
        },
    "input.名称": {
        "testId":"founding-index-detail-form-40003",
        "value": data_name,
        },
    "button_click.确定": {
        "text": "确定",
    },
    "get_list_data.数据集列表": {
        "testId": "founding-index-detail-30002-t1",
    },
    # "action_bar.删除数据": {
    #     "testId": "founding-index-detail-30003-b3",
    #     "text": data_name,
    # },
    # "button_click.确定删除": {
    #     "text": "确定删除",
    # }
}
""" 验证资源组查看规则关系 """
from cases_ui.data_processing.config_data.config import *
edit = CUSTOM_RULE['edit']
action = CUSTOM_RULE['action']
add_rule = {
    "multiple_pull.条件": {
        "condition":{
            "字段":[edit['字段'], edit['原文片段']],
            "变量值": [edit['变量值'], edit['变量值_值']],
            "逻辑运算符": [edit['逻辑运算'], edit['!=']],
            "条件类型": [edit['条件类型'], edit['资源组']],
            "条件详情": [edit['条件详情'], edit['测试资源']],
            "权重": [edit['权重'], edit['A']],
            }
        },
    "multiple_field_edit.信息": {
        "field_value":{
            "规则名称":[edit['规则名称'], generate_custom_string()],
            "规则描述": [edit['规则描述'], generate_custom_string()],
            "规则类型": [edit['规则类型'], '过滤'],
            "数据渠道": [edit['数据渠道'], ['小红书>checked']],
            "条件限制": [edit['条件限制'], "满足任意条件(OR)"]
            }
        },
    "button_click.确定": {
        "text": "确定",
    }
}